<script setup lang="ts">
import {computed} from 'vue';

const props = withDefaults(
  defineProps<{
    value: any;
    item: any;
  }>(),
  {
    value: '',
    item: () => {},
  },
);
const {item} = props;

const emit = defineEmits<{
  'update:value': [value: any];
}>();

const value = computed({
  get: () => props.value,
  set: (value) => {
    emit('update:value', value);
  },
});

// console.log('item', item);
</script>

<template>
  <a-radio-group v-model:value="value" :options="item.options"> </a-radio-group>
</template>

<style lang="less" scoped></style>
